<template>
	<view class="">
		name: {{name}} - {{age}}
		<scroll-view scroll-y="true" ref="scroll">
			<view></view>
		</scroll-view>
		<navigator url="/pages/demo55/demo55">demo55</navigator>
		<view>---</view>
		<view>count: {{count}}</view>
		<view>---</view>
		<navigator open-type="reLaunch" url="/pages/demo44/demo44">demo44</navigator>
		<view v-for="item in 5">{{item}}</view>
		
		<view class="fixed" v-if="fixed">i</view>
	</view>
</template>

<script setup>
import {ref} from "vue"
import {onLoad} from "@dcloudio/uni-app"

const name = ref("John")
const age = ref(18)
const scroll = ref(null)
const count = ref(0)
const fixed = ref(false)

let time = setInterval(()=>{
	count.value++
},50)

onLoad((e)=>{
	console.log("onload()");
	console.log(e);
	name.value = e.name;
	age.value = e.age;
})
</script>

<style lang="scss" scoped>
	       
</style>
